package com.summer.order.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "book")
public class Book implements java.io.Serializable {

	public static final long serialVersionUID = 1L;

	private String id;
	private String name;
	private Double price;
	private String publisher;
	private String author;
	private String status;
	private Date pdate;

	public Book() {

	}

	@Id
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public Double getPrice() {
		return price;
	}

	public String getPublisher() {
		return publisher;
	}

	public String getAuthor() {
		return author;
	}

	public String getStatus() {
		return status;
	}

	public Date getPdate() {
		return pdate;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public void setPdate(Date pdate) {
		this.pdate = pdate;
	}

}
